/**
 * @author : niu niu
 * @version : 1.0.0
 * @date : 2022/11/7 11:24
 */
public class TestObj{
    public static void main(String[] args){
        Object o=new Object(){
            public boolean equals(Object obj){
                return true;
            }
        };
        System.out.println(o.equals("Fred"));
    }
}